package com.swallow.auth.common.result;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author: yangjie.deng@resico.cn
 * @since: 2024-05-23 14:56:39
 * @version: v1.0.0
 * @describe:
 */
@Setter
public class PageDTO implements Serializable {
    private Integer pageSize;

    private Integer pageNo;
    @Getter
    private String keywords;


    public Integer getPageSize() {
        return pageSize == null || pageSize == 0 ? 10 : pageSize;
    }

    public Integer getPageNo() {
        return pageNo == null || pageNo == 0 ? 1 : pageNo ;
    }
}
